<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="2"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group" id="gChoice">
<!--        <p style="color: red;text-align: left"> * 上方选择为部门时,此框内选择失效</p>-->
        <label class="control-label col-xs-12 col-sm-2">{:__('上级部门')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pid" class="form-control selectpage"  data-field="name" data-source="level/departmentIndex" name="row[pid]" type="text" placeholder="此框仅为上方选择为车间时生效">
        </div>
    </div>
    <div class="form-group" id="gJudge">
        <!--        <p style="color: red;text-align: left"> * 上方选择为部门时,此框内选择失效</p>-->
        <label class="control-label col-xs-12 col-sm-2">{:__('上级车间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cj" class="form-control selectpage"  data-field="name" data-source="level/workshopIndex" name="row[workshop]" type="text"  placeholder="此框仅为上方选择为段位时生效">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
